package com.mayee.me.gateway.route;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: mayee
 * @create: 2020-12-28 22:19
 **/
@Getter
@RefreshScope
@Configuration
public class RouteConfiguration {

    @Value("${gateway.route-data-id}")
    private String routeDataId;

    @Value("${gateway.route-data-group}")
    private String routeDataGroup;

    @Value("${spring.cloud.nacos.config.server-addr}")
    private String serverAddr;

    @Value("${spring.application.name:micro-service-gateway}")
    private String applicationName;

    @Value("${gateway.route-show-route-refresh:false}")
    private boolean showRouteRefresh;

    @Value("${gateway.route-cache-time-to-live:10000}")
    private long routeCacheTimeToLive;
}
